<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../css/backstage.css" type="text/css"/>
    <title>JpetStore后台管理</title>
</head>
<body>
<div th:replace="/administrator/common/head.html"></div>
<div class="mid">
    <div class="title">
        <label >用户信息</label><br>
    </div>
    <table class="tables">
        <thead>
        <tr>
            <td>用户名</td>
            <td>邮箱</td>
            <td>姓</td>
            <td>名</td>
            <td>住址1</td>
            <td>住址2</td>
            <td>地区</td>
            <td>邮编</td>
            <td>电话</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <tr th:each="account:${AdminaccountList}">
            <td th:text="${account.getUsername()}"><a href="">1</a></td>
            <td th:text="${account.getEmail()}">1</td>
            <td th:text="${account.getFirstName()}">1</td>
            <td th:text="${account.getLastName()}">1</td>
            <td th:text="${account.getAddress1()}">1</td>
            <td th:text="${account.getAddress2()}">1</td>
            <td th:text="${account.getCity()}+${account.getState()}">1</td>
            <td th:text="${account.getZip()}">1</td>
            <td th:text="${account.getPhone()}">1</td>

            <td style="width: 100px" th:if="${account.getStatus() eq 'OK'}">
                <a th:href="@{'/account/AdminEditAccount?username='+${account.getUsername()}}">查看详情并编辑</a>
            </td>
            <td th:if="${account.getStatus() eq 'NO'}">
                <a th:href="@{'/account/RecoverAccount?username='+${account.getUsername()}}">账户已删除点击恢复</a>
            </td>

        </tr>
        </tbody>

    </table>
</div>
<div th:replace="/administrator/common/foot.html"></div>

</body>
</html>